<?php
/*
	include 'wsse_demo/cls_transport.php';
	$t = new transport(-1, -1, -1, true);
	//$url = "http://www.winapi.com:8080/app_dev.php/sound/upload";
	$url = "http://localhost/index2.php";
	$params = array(
			'vcc_code' => 'wintel',
			'name' => '语音文件',
			'remark' => '备注',
			'sound' => '@E:\wamp\www\demo.php',
		);
	$reponse = $t->request($url, $params, 'POST');
	echo $reponse['body'];
	//var_dump($reponse);

*/
$ch = curl_init();
$post_data = array(
    'vcc_code' => 'wintel',
    'name' => '语音文件',
    'remark' => '备注',
	'sound' => '@E:\wamp\www\demo.wav'
);
curl_setopt($ch, CURLOPT_HEADER, false);

curl_setopt($ch, CURLOPT_POST, true);  
curl_setopt($ch,CURLOPT_BINARYTRANSFER,true);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post_data);
curl_setopt($ch, CURLOPT_URL, 'http://www.winapi.com:8080/app_dev.php/sound/upload');
$info= curl_exec($ch);
curl_close($ch);   
print_r($info);
